package com.example.fasttask;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;

public class ChooseTimeActivity extends Activity {
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_choose_time);
    }
	
	public void startDisplayTaskActivity(View view) {
        Intent intent = new Intent(ChooseTimeActivity.this, DisplayTaskActivity.class);
        startActivity(intent);
        finish();
    }
	
	public void startTestDisplayTaskActivity1min(View view) {
        Intent intent = new Intent(ChooseTimeActivity.this, DisplayTaskActivity.class);
//        Log.d("ChooseTimeActivity", "startTestDisplayTaskActivity");
        Bundle bundle = new Bundle();
        bundle.putString("time", "1 minute");
        intent.putExtras(bundle);
        startActivity(intent);
    }
	
	public void startTestDisplayTaskActivity5min(View view) {
        Intent intent = new Intent(ChooseTimeActivity.this, DisplayTaskActivity.class);
//        Log.d("ChooseTimeActivity", "startTestDisplayTaskActivity");
        Bundle bundle = new Bundle();
        bundle.putString("time", "5 minutes");
        intent.putExtras(bundle);
        startActivity(intent);
    }
	
	public void startTestDisplayTaskActivity10min(View view) {
        Intent intent = new Intent(ChooseTimeActivity.this, DisplayTaskActivity.class);
//        Log.d("ChooseTimeActivity", "startTestDisplayTaskActivity");
        Bundle bundle = new Bundle();
        bundle.putString("time", "10 minutes");
        intent.putExtras(bundle);
        startActivity(intent);
    }
	
	public void startTestDisplayTaskActivity20min(View view) {
        Intent intent = new Intent(ChooseTimeActivity.this, DisplayTaskActivity.class);
//        Log.d("ChooseTimeActivity", "startTestDisplayTaskActivity");
        Bundle bundle = new Bundle();
        bundle.putString("time", "20 minutes");
        intent.putExtras(bundle);
        startActivity(intent);
    }
	
	public void startTestDisplayTaskActivity30min(View view) {
        Intent intent = new Intent(ChooseTimeActivity.this, DisplayTaskActivity.class);
//        Log.d("ChooseTimeActivity", "startTestDisplayTaskActivity");
        Bundle bundle = new Bundle();
        bundle.putString("time", "30 minutes");
        intent.putExtras(bundle);
        startActivity(intent);
    }
	
	public void startMainActivity(View view) {
		Intent intent = new Intent(ChooseTimeActivity.this, MainActivity.class);
		startActivity(intent);
		finish();
	}
}
